<!--代码逻辑和样式库-->
<script src="./department-detail.component.js"></script>
<style src="./department-detail.scss" scoped lang="scss"></style>

<template>
  <div>
    <el-dialog :visible.sync="showDialog" width="1300px" @close="closeDialog()">
      <span slot="title">
        <span class="aq-text-weight-bolder">部门管理</span>
        <i class="aq-margin-left-12 aq-margin-right-12 el-icon-arrow-right"></i>
        {{ title }}
      </span>
      <el-form :model="editForm" label-position="top" label-width="120px">
        <el-row :gutter="20">
          <el-col :span="5">
            <el-form-item>
              <div>部门编号</div>
              <el-input v-model="editForm.code" disabled/>
            </el-form-item>
          </el-col>
          <el-col :span="5">
            <el-form-item>
              <div>部门名称</div>
              <el-input v-model="editForm.name" disabled/>
            </el-form-item>
          </el-col>
          <el-col :span="10">
            <el-form-item>
              <div>所属组织</div>
              <el-select v-model="editForm.pid" class="aq-width-full" disabled>
                <el-option v-for="(item, index) in structs" :key="index" :label="item.name" :value="item.objectId"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="5" class="aq-vertical-middle">
            <el-form-item prop="pidObj">
              <div>是否为工段</div>
              <el-switch v-model="editForm.isSection" :active-value="1" :inactive-value="0" active-color="#13ce66" inactive-color="#ff4949" disabled>
              </el-switch>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item>
              <div>部门描述</div>
              <el-input v-model="editForm.description" disabled/>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </el-dialog>
  </div>
</template>
